<template>
	<view class="">
		<swiper class="swiper" >
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic" src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
		</swiper>
		<swiper class="swiper" >
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic" src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
		</swiper>
		<swiper class="swiper" >
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic" src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image class="pic"  src="../../static/image/mine/integral/bigpic.png" mode=""></image>
			</swiper-item>
		</swiper>
		<view class="product_content">
			<view class="title">
				花牛苹果 约950g
			</view>
			<view class="desc">
				多吃多营养，全家共享
			</view>
			<view class="volume">
				<image src="../../static/image/mine/integral/hot.png" mode=""></image>
				销量：465453
			</view>
		</view>
		<view class="price_info">
			<view class="price_info_l">
				<view class="need_integral">
					<text>1200</text>/积分
				</view>
				<view class="price">
					￥188.00
				</view>
			</view>
			<view class="price_info_r">
				库存：4564件
			</view>
		</view>
		<view class="quality">
			<view class="quality_item" v-for="(item,key) in quality">
				<image :src="item.pic" mode=""></image>
				{{item.info}}
			</view>
		</view>
		<view class="share" @tap="top">
			<image src="../../static/image/mine/integral/share.png" mode=""></image>分享
		</view>
		<view class="exchange">
			<view class="btn">
				立即兑换
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				quality: [
					{
						pic:'../../static/image/mine/integral/quality1.png',
						info: '0起送0运费'
					},
					{
						pic:'../../static/image/mine/integral/quality2.png',
						info: '晚到必陪'
					},
					{
						pic:'../../static/image/mine/integral/quality3.png',
						info: '100%检'
					},
					{
						pic:'../../static/image/mine/integral/quality4.png',
						info: '包退包赔'
					}
				]
			}
		},
		methods: {
			top () {
				uni.pageScrollTo({
					duration:300,
					scrollTop: 0,
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.swiper {
		width: 100%;
		height: 750upx;
		.pic{
			width: 100%;
			height: 100%;
		}
	}
	.product_content {
		width: 100%;
		height: 190upx;
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		.title {
			font-size: 32upx;
			color: #333333;
			font-weight: bold;
			line-height: 32upx;
		}
		.desc {
			font-size: 24upx;
			color: #999999;
			line-height: 28upx;
			margin-top: 10upx;
			margin-bottom: 20upx;
		}
		.volume {
			height: 40upx;
			background-color: #333333;
			border-radius: 8upx;
			padding: 0 20upx;
			box-sizing: border-box;
			font-size: 24upx;
			color: #999999;
			display: flex;
			align-items: center;
			justify-content: center;
			image {
				width: 22upx;
				height: 25upx;
				margin-right: 8upx;
			}
		}
	}
	.price_info {
		width: 100%;
		height: 120upx;
		padding: 0 15upx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
		.need_integral {
			font-size: 24upx;
			color: #f73e2f;
			text {
				font-size: 28upx;
				font-weight: bold;
			}
		}
		.price {
			margin-top: 10upx;
			font-size: 24upx;
			color: #999999;
			text-decoration: line-through;
		}
		.price_info_r {
			font-size: 28upx;
			color: #999999;
			margin-top: 30upx;
		}
	}
	.quality {
		width: 100%;
		height: 70upx;
		background-color: #fefded;
		padding: 0 30upx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	
		.quality_item {
			display: flex;
			align-items: center;
			font-size: 24upx;
			line-height: 30upx;
			color: #333333;
			image {
				width: 28upx;
				height: 30upx;
				margin-right: 4upx;
			}
		}
	}
	.share {
		position: fixed;
		right: 0;
		bottom: 150upx;
		width: 130upx;
		height: 52upx;
		background-color: #333333;
		border-bottom-left-radius:26upx ;
		border-top-left-radius: 26upx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 28upx;
		line-height: 28upx;
		color: #FFFFFF;
		image {
			width: 28upx;
			height: 28upx;
			margin-right: 8upx;
		}
	}
	.exchange {
		width: 100%;
		height: 130upx;
		display: flex;
		align-items: center;
		justify-content: center;
		.btn {
			width: 690upx;
			height: 86upx;
			font-size: 32upx;
			color: #FFFFFF;
			text-align: center;
			line-height: 86upx;
			background: linear-gradient(to right,#f73e2f 0%,#fc5c2f 100%);
			box-shadow: 0 0 6upx 0 #fc5c2f;
		}
	}
</style>
